function [  ] = PlotMain(lambda, time, data, ftitle, varargin )
    ftitle = strcat(ftitle, 'Overall');
    
    [norm] = Popt(varargin, 'norm', 1);

    if norm ~= 0
        data = data ./ max(max(data));
    end
    h = figure('visible','off');

    fontSize = 26;

    set(h, 'DefaultAxesFontSize', fontSize);


    contourf(time, lambda, data);
    %colormap gray;
    %colormap(flipud(colormap));
    colorbar;
    xlabel('Laikas, s', 'FontSize', fontSize);
    ylabel('Bangos ilgis, nm', 'FontSize', fontSize);

    SaveFigure( h, ftitle );

end

